package org.jeecg.modules.power.device.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.power.device.entity.YlDeviceOperateRecords;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.power.group.entity.GroupUser;

import java.util.List;

/**
 * @Description: yl_device_operate_records
 * @Author: jeecg-boot
 * @Date:   2024-08-09
 * @Version: V1.0
 */
public interface IYlDeviceOperateRecordsService extends IService<YlDeviceOperateRecords> {

    /**
     * 仓宝运维记录
     * @param deviceId
     * @param beginTime ，endTime
     * @param type
     * @return
     */
    List<YlDeviceOperateRecords> getRecords(Page<YlDeviceOperateRecords> page, String deviceId, String beginTime, String endTime, String type);
    /**
     * 仓宝运维
     * 此处有针对设备的操作，后续补充
     * @param deviceId 设备ID或者mac
     * @param type 运维类型（字典 device_operate_type） ：type:1强制弹宝2正常弹宝3锁仓4解锁
     * @param hatch 充电宝信息{仓口号,SN,执行状态}
     */
    void operate(String deviceId, String deviceMac, Integer type, String hatch, String reason,GroupUser bd);

}
